
<div id="memberEditDlg" class="easyui-dialog" title="设置会员信息"
	style="width: 400px; height: 300px; padding: 10px"
	data-options="
            	closable : false,
            	closed : true,
                iconCls: 'icon-save',
                buttons: '#dlg-buttons',
                onOpen : initMemberEditDlg">
	<form id="memberFormEdit" method="post"
		action="${contextPath}/member/updateMember"
		loadAction="${contextPath}/member/getMember">
		<table align="center" cellpadding="8" style="width: 70%">
			<tr>
				<td>狗类型</td>
				<td><div>
						<input class="easyui-textbox mediumInput" type="text" name="dogId" />
					</div></td>
			</tr>
			<tr>
				<td>狗年龄</td>
				<td>
					<div>
						<input class="easyui-textbox mediumInput" type="text"
							name="dogAge" />
					</div>
				</td>
			</tr>
			<tr>
				<td>积分</td>
				<td><div>
						<input class="easyui-textbox mediumInput" type="text" name="score" />
					</div></td>
			</tr>
			<tr>
				<td>自我介绍</td>
				<td><div>
						<input class="easyui-textbox mediumInput" type="text"
							data-options="multiline:true" style="height: 60px"
							name="description" />
					</div></td>
			</tr>
		</table>
		<input type="hidden" id="memberId" name="uid" value="">
	</form>
</div>
<div id="dlg-buttons">
	<a href="javascript:void(0)" data-options="iconCls:'icon-ok'"
		class="easyui-linkbutton" onclick="saveMemberEditDlg()">保存</a> <a
		href="javascript:void(0)" data-options="iconCls:'icon-cancel'"
		class="easyui-linkbutton"
		onclick="javascript:$('#memberEditDlg').dialog('close')">取消</a>
</div>
<script>
	function saveMemberEditDlg() {
		BaseJs.submitForm("#memberFormEdit", function(rData) {
			$('#memberEditDlg').dialog('close');
		});
	}
	function initMemberEditDlg() {

		var memberId = $("#memberId").val();

		$("#memberFormEdit").form('clear');
		$("#memberId").val(memberId);

		if (memberId == null || memberId == "") {
			alert("获取错误");
			return;
		}

		$("#memberEditDlg").attr("title", "设置会员信息(ID = " + memberId + "")

		BaseJs.setFormByUrl("#memberFormEdit", {
			uid : memberId
		});
		return false;
	}
</script>

